# for i in range(1,10):
#     for j in range(1,i+1):
#         print(f'{j}*{i}={i}*{j}\t',end='')



# for n in range(100,1000):
#   i = n // 100 #取百位
#   j = n //10 %10 #取十位
#   k = n % 10 #取个位
#   if n == (i**3+j**3+k**3):
#    print(n)

# for i in range(2,100):
#   for j in range(2,i):
#     if i%j==0:
#       break
#   else:
#       print(i)
# 循环输出1到100之间的数 range():含头不含尾



# for i in range(1,101):
#
#   sum = 0
#
#   for j in range(1,i):
#
#     if i % j == 0:
#
#       sum += j
#
#   if sum == i:
#     print(f"{i}是完数")


# i=0
# a=1
# b=1
# while i<39:
#   print(a)
#   a,b=b,a+b
#   i+=1



# x = int(input('请输入菱形宽度：'))
# for i in range(0, x + 1):
#     print(' ' * (x - i) + '* ' * i)
# for i in range(x - 1, 0, -1):
#     print(' ' * (x - i) + '* ' * i)
